package com.common.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("预约Vo")
public class MakeAppInfoVo implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("字典id通过字典查找商品类别、积分规则")
    private Long dictId;

    @ApiModelProperty("预约人姓名")
    private String makeAppName;

    @ApiModelProperty("手机号")
    private String maleAppPhone;

    @ApiModelProperty("预约时间")
    private LocalDateTime makeAppDate;


    @ApiModelProperty("预约状态 0-预约中 1-预约成功 2-预约失败 3-预约完成 4-预约取消")
    private Integer makeAppStatus;

    @ApiModelProperty("预约重量")
    private Integer makeAppHeight;


    @ApiModelProperty("创建人")
    private String created;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdDate;


    @ApiModelProperty("更新人")
    @TableField(value="`update`")
    private String update;


    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    private static final long serialVersionUID = 1L;
}